/**
 * 基础路由
 * @type { *[] }
 */



const constantRouterMap = [
  {
    path: '/',
    name: '',
    component: () => import('@/views/home.vue'),
    children: [
      { 
        path: '',
        name: '',
        component: () => import('@/views/Admin/index.vue'),
        meta: { title: '首页' }
      },
      {
        path: 'users',
        name: 'Users',
        component: () => import('@/views/Admin/User.vue'),
        meta: { title: '用户' }
      },{
        path: 'tags',
        component: () => import('@/views/Admin/Tags.vue'),
        meta: { title: '标签' }
      },
      {
        path: "posts",
        component: () => import('@/views/Admin/Posts.tsx'),
        meta: { title: '文章' }
      },
      {
        path: "setting",
        component: () => import('@/views/Admin/Setting.tsx'),
        meta: { title: '设置' }
      },
      {
        path: 'write',
        component: () => import('@/views/Admin/WriteDairy.vue'),
        meta: { title: '写日记'}
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login.vue'),
    meta: { title: '登录' }
  }
]

export default constantRouterMap